<me:UIGSDAT x:Class="WPFExcelReport.TSGS01"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"  
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIGSDAT.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>       <CollectionViewSource  x:Key="vwDetail"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:NOTBoolToVisibilityConverter x:Key="nbv"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        </me:UIGSDAT.Resources>
         <WrapPanel >
        <WF:TBTNEXE IsManage="{Binding IsManage,ElementName=TV}" DLL="ITXUI" CMD="GS02" STWNW="MainWindow" 
                    />
        
        <ComboBox Grid.Row="0" Grid.Column="1"
                  DropDownOpened="ComboBox_DropDownOpened"
                  Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource bv}}"
                          IsEditable="True" 
                            Width="200"
                           SelectedValuePath="KEY"
                           DisplayMemberPath="KEY"
                           ItemsSource="{Binding Source={StaticResource vwMaster }}" 
                           IsSynchronizedWithCurrentItem="True" 
                           >
        </ComboBox>
        <TextBlock   Text="{Binding GSART,Converter={StaticResource gb2312}}"
                      Visibility="{Binding IsEdit,ElementName=TV,Converter={StaticResource nbv}}"
                  />
    </WrapPanel> 
</me:UIGSDAT>
